<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <?php include "inc/head.php"; ?>
</head>

<body>
  <?php
  include "inc/header.php";
  include "inc/nav.php";
  include "inc/banner.php";
  ?>

  <?php include "inc/breadcrumb.php"; ?>

  <div class="container bg-white block-shadow">
    <div class="row my-2">
      <div class="hidden-xs col-sm-3">
        <?php include "inc/side.php"; ?>
      </div>

      <div class="col-xs-12 col-sm-9">

        <dl class="title">
          <dt><?php echo $channel['c_name']; ?></dt>
        </dl>

        <div class="row list-img">
          <?php
          if (false === $list_pager) {
            echo '<a href="javascript:void();">N/A</a>';
          }
          foreach ($list_pager as $val) {
            echo '
              <a class="col-xs-6 col-sm-4 item" href="' . d_url($val['id'], $val['d_link']) . '" title="' . $val['d_name'] . '">
                <img src="' . $val['d_picture'] . '" alt="' . $val['d_name'] . '">
                <h5>' . $val['d_name'] . '</h5>
              </a>
            ';
          }
          ?>
        </div>

        <nav class="text-center">
          <ul class="pagination">
            <?php echo $pager->show(); ?>
          </ul>
        </nav>
      </div>
    </div>
  </div>

  <?php
  include "inc/footer.php";
  include "inc/js.php";

  include "inc/code.php";
  ?>
</body>

</html>
